package com.akilesa.dictcreator;

/**
 * Created by IntelliJ IDEA.
 * User: akilesa
 * Date: 28.01.2010
 * Time: 15:04:35
 * To change this template use File | Settings | File Templates.
 */
public class Statistic {

    private static Statistic stat=new Statistic();

    private long wordTotalCount;
    private long cardTotalCount;
    private long wordNotFoundCount;
    private long wordExcludedTotalCount;
    private long wordExcludedCount;

    private Statistic(){

    }

    public static Statistic getInstance(){
        return stat;
    }

    public void print(){
        System.out.println("-------------------------------------------------------------------------");
        System.out.println("Total count of unique words in text: "+wordTotalCount);
        System.out.println("Total count of words, that was not found in dictionary: "+wordNotFoundCount);
        System.out.println("Total count of words in excluded list: "+wordExcludedTotalCount);
        System.out.println("Total count of words, that was excluded: "+wordExcludedCount);
        System.out.println("Total count of created Anki cards: "+cardTotalCount);
        System.out.println("-------------------------------------------------------------------------");
    }

    public static Statistic getStat() {
        return stat;
    }

    public static void setStat(Statistic stat) {
        Statistic.stat = stat;
    }

    public long getWordTotalCount() {
        return wordTotalCount;
    }

    public void setWordTotalCount(long wordTotalCount) {
        this.wordTotalCount = wordTotalCount;
    }

    public long getCardTotalCount() {
        return cardTotalCount;
    }

    public void setCardTotalCount(long cardTotalCount) {
        this.cardTotalCount = cardTotalCount;
    }

    public long getWordNotFoundCount() {
        return wordNotFoundCount;
    }

    public void setWordNotFoundCount(long wordNotFoundCount) {
        this.wordNotFoundCount = wordNotFoundCount;
    }

    public long getWordExcludedTotalCount() {
        return wordExcludedTotalCount;
    }

    public void setWordExcludedTotalCount(long wordExcludedTotalCount) {
        this.wordExcludedTotalCount = wordExcludedTotalCount;
    }

    public long getWordExcludedCount() {
        return wordExcludedCount;
    }

    public void setWordExcludedCount(long wordExcludedCount) {
        this.wordExcludedCount = wordExcludedCount;
    }
}
